package com.cm.stock.manager.dto;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

@SuppressWarnings("serial")
@Entity
@Table(name = "pointdevente",uniqueConstraints={@UniqueConstraint(columnNames={"code"})})
public class PointVenteDTO implements Serializable{

	@Id
	@Column(name = "ID", nullable = false)
	@GeneratedValue(strategy = GenerationType.AUTO)
	private int id;
	@Column(length=25, nullable=false)
	private String code	;
	private String description;
	private String name;
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public PointVenteDTO() {
		super();
	}
	public PointVenteDTO(String code, String description, String name) {
		super();
		this.code = code;
		this.description = description;
		this.name = name;
	}
	
	@Override
	public String toString() {
		return name+" - "+description;
	}
}
